package me.send.framework.util;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;

public class BaseURL {

	public static String GetContextURL(String url) {
		StringBuilder context = new StringBuilder();
		try {
			URL oracle = new URL(url);
			URLConnection yc = oracle.openConnection();
			BufferedReader in = new BufferedReader(new InputStreamReader(
					yc.getInputStream(), "utf-8"));
			String inputLine = null;
			while ((inputLine = in.readLine()) != null) {
				context.append(inputLine);
			}
			in.close();
		} catch (MalformedURLException localMalformedURLException) {
		} catch (IOException localIOException) {
		}
		return context.toString();
	}

}
